package com.intelligentclass.services;

import com.intelligentclass.entity.Test;
import com.intelligentclass.repositories.TestRespository;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    private static TestRespository testRespository;

    public TestService(TestRespository testRespository) {
        TestService.testRespository = testRespository;
    }

    public Test getTestEntity(int id) {
        return testRespository.getById(id);
    }
    public Test save(Test testEntity) {
        return testRespository.save(testEntity);
    }
}
